<?php die;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>miceCMS,觅策企业网站管理系统</title>
<link href="css/default.css" rel="stylesheet" type="text/css">
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/jquery_min.js"></script>
<script type="text/javascript">
<!--
$(function()
{
    $(':checkbox').click(function()
    {
        // children
        $(this).parent('li').find(':checkbox').attr('checked', this.checked);
        // parent
        checkParent(this);
    });
});

function checkParent(obj)
{
    if(obj == null)
        return;
		
    if(obj.checked)
    {
        checkParent($(obj).closest('ul').prev().attr('checked', true)[0]);
    }
    else
    {
		if($(obj).closest('ul').find('>li>input:checkbox:not(:checked)').size() == 0)
			checkParent($(obj).closest('ul').prev().attr('checked', false)[0]);
    }
}

function CheckForm()
{
 if (document.form1.name.value.length == 0)
 {
  alert("组名称不能为空！");
  document.form1.name.focus();
  return false;
 } 
 if (document.form1.level.value == 0)
 {
  alert("级别必须大于0！");
  document.form1.level.focus();
  return false;
 } 
  return true;
}
-->
</script>
</head>

<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
	<form id="form1" name="form1" action="<!--{$formaction}-->" method="post" onsubmit="return CheckForm()">
	<tr>
		<td width="100%" valign="top">
			<fieldset class="adminform">
				<legend>用户组属性</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="65" class="keyred" height='20'>组　名:</td>
						<td colspan="2">
							<input name='group_id' id='group_id' type='hidden' value='<!--{$results->getGroupId()}-->'>
							&nbsp;<input name='name' id='name' type='text' size='50' value='<!--{$results->getName()}-->'>
						</td>
					</tr>
					<tr>
						<td width="65" class="keyred" height='20'>级　别:</td>
						<td colspan="2">
							&nbsp;<input name='level' id='level' type='text' size='5' value='<!--{$results->getLevel()}-->'>&nbsp;(必须为大于0的数字,级别按数字从小到大排列)
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>说　明:</td>
						<td colspan="2">
							&nbsp;<input name='intro' id='intro' type='text' size='50' value='<!--{$results->getIntro()}-->'>
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>管理权限:</td>
						<td colspan="2">
							<ul >
								<li>
									<input type="checkbox"/>&nbsp;全部菜单
								<ul >
								<!--{$menutree}-->
								</ul>
								</li>
							</ul>
							<div id="debug" ></div>
							<font color='red'>&nbsp;注意:1、非管理员组，请勿设置管理权限<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、如果指定了菜单管理权限，那么此用户组就拥有此菜单的所有子菜单的操作权限<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							3、在设置文章浏览权限时:如果设置允许浏览的用户组级别为1,则级别大于1的用户组都有浏览权限</font>
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			&nbsp;&nbsp;<label><input type="checkbox" name="goon" id="goon" value="1">保存后继续添加</label>&nbsp;&nbsp;<input type="submit" value="保存[S]" accesskey="s"/>&nbsp;<input type="reset" value="重置[R]" accesskey="r"/>&nbsp;<input type="button" onclick="javascript:history.back(-1)" value="返回[B]" accesskey="b"/>
		</td>
	</tr>
	</form>
</table>
<br>
</body>
</html>